import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home.vue'
import Test01 from '@/view/Test01'
import Test02 from '@/view/Test02'
import Test03 from "@/view/Test03";
import Test04 from "@/view/Test04";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/", redirect: "/home"
    },
    // home 主页的 页面的组件 路径规则配置
    {
      path: "/home",
      component: Home,
      // home 主页下面的子模块
      children: [
        {
          path: "test01",
          component: Test01
        },
        {
          path: "test02",
          component: Test02
        },
        {
          path: "test03",
          component: Test03
        },{
          path: "test04",
          component: Test04
        }

      ]
    }
  ]
})
